package Dao;

import entity.Mail;
import entity.User;

import java.util.List;

/**
 * @className: AdminDao
 * @description: 管理员操作接口
 * @author: Dong
 * @date: 2021/12/30
 **/
public interface AdminDao {
    String login(String id);

    List<Mail> queryAllMail();

    List<Mail> queryMail(String mId);

    List<User> queryAllUser();

    User queryUser(String uid);

    boolean modifyUser(String uId, String password, String idCard, String sex,
                       int age, String address, String uName, String telephone);

    boolean deleteUser(String uid);

    List<Mail> withoutDeliveryForThreeDays();
}
